package com.jxd.reportsys.controller;

import com.jxd.reportsys.model.User;
import com.jxd.reportsys.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author 朱隶文
 * @Date 2024/9/21 15:59
 * @Version 1.0
 */
@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/editPwd")
    public boolean editPwd(@RequestBody User user) {
        return userService.editPwd(user.getEmpno(), user.getPwd());
    }

}
